package com.ishuoxiao.services.lettermgr.impl;

import java.util.List;

import com.ishuoxiao.bean.vo.LetterInfo;
import com.ishuoxiao.services.dao.BaseDao;
import com.ishuoxiao.services.lettermgr.ILetterInfoService;
import com.ishuoxiao.tools.DataRuntimeException;

public class LetterInfoImpl extends BaseDao implements ILetterInfoService{


	@SuppressWarnings("unchecked")
	public List<LetterInfo> allNewLetterInfo() {
		
		try{
			String hql=" from LetterInfo";
			return findByPage(hql, 0, 10);
		}catch(Exception e){
			throw new DataRuntimeException("查询帖子页面出错！");
		}
	}

	

}
